<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>appinfodetail</title>
  <link rel="stylesheet" href="../../../css/element-ui/index.css">
  <script src="../../../js/lib/vue/vue.js"></script>
  <script src="../../../js/lib/elementui//lib/index.js"></script>
  <link rel="stylesheet" href="../../../css/common.css">
  <link rel="stylesheet" href="../appinfodetail/css/appdetail.css">

</head>

<body>
  <div id="app">
    <el-container>
      <el-main>
        <el-form ref="form" :model="form" label-width="100px">
          <el-form-item label="图标：" class="iconurl">
            <!-- <img v-bind:src="form.iconurl" alt="" srcset=""> -->
            <el-upload class="upload-demo" :auto-upload="false" action="" :on-change="handleChange" :limit=1
              :on-remove="handleRemove" :file-list="fileList" list-type="picture">
              <el-button size="small" type="primary">选择图标</el-button>
              <div slot="tip" class="el-upload__tip">只能上传png文件，推荐尺寸50*50，且不超过500kb</div>
            </el-upload>
          </el-form-item>
          <el-form-item label="名称：">
            <el-input v-model.trim="form.appname"></el-input>
          </el-form-item>
          <el-form-item label="是否公开">
            <el-switch v-model="form.public" active-value="1" inactive-value="0"></el-switch>
          </el-form-item>
          <el-form-item label="启用node：" prop='enablenode'>
            <el-switch v-model="form.enablenode" active-value="1" inactive-value="0"></el-switch>
          </el-form-item>
          <el-form-item label="地址：">
            <el-input v-model.trim="form.appurl"></el-input>
          </el-form-item>
          <el-form-item label="简介：">
            <el-input type="textarea" v-model.trim="form.remark"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="appinfoedit">保存</el-button>
            <el-button type="danger" @click="closepage">关闭</el-button>
          </el-form-item>
        </el-form>
      </el-main>
    </el-container>

  </div>
</body>
<script src="./js/appinfoedit.js"></script>

</html>
